public class test1 {
    public static void main(String[] args) {
        String str="2021-07-30 16:03:35.707";
        String beginTime=str.substring(0,10);
        System.out.println("beginTime:"+beginTime);
    }
}
